From 8e5c7ac028a221800069f325da2c1b0ba95304a0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 3 Nov 2015 14:24:25 -0500 Subject: [PATCH] menu: Add diagrams to CSS documentation --- gtk/gtkcheckmenuitem.c | 6 ++++++ gtk/gtkmenu.c | 7 +++++++ gtk/gtkmenuitem.c | 6 ++++++ gtk/gtkradiomenuitem.c | 6 ++++++ 4 files changed, 25 insertions(+) diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c index 6a1ad2298e..3b26552940 100644 --- a/gtk/gtkcheckmenuitem.c +++ b/gtk/gtkcheckmenuitem.c @@ -51,6 +51,12 @@ * * # CSS nodes * + * |[ + * menuitem + * ├── ... + * ╰── check.right + * ]| + * * GtkCheckMenuItem has a main CSS node with name menuitem, and a subnode * with name check, which gets the .left or .right style class. */ diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 3bbc9aac2c..a3da298e55 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -85,6 +85,13 @@ * * # CSS nodes * + * |[ + * menu + * ├── arrow.top + * ├── ... + * ╰── arrow.bottom + * ]| + * * The main CSS node of GtkMenu has name menu, and there are two subnodes * with name arrow, for scrolling menu arrows. These subnodes get the * .top and .bottom style classes. diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 450fb70e5a..688ecee92f 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -90,6 +90,12 @@ * * # CSS nodes * + * |[ + * menuitem + * ├── ... + * ╰── [arrow.right] + * ]| + * * GtkMenuItem has a single CSS node with name menuitem. If the menuitem * has a submenu, it gets another CSS node with name arrow, which has * the .left or .right style class. diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c index 9438ed8fbd..919b8473f8 100644 --- a/gtk/gtkradiomenuitem.c +++ b/gtk/gtkradiomenuitem.c @@ -64,6 +64,12 @@ * * # CSS nodes * + * |[ + * menuitem + * ├── ... + * ╰── radio + * ]| + * * GtkRadioMenuItem has a main CSS node with name menuitem, and a subnode * with name radio, which gets the .left or .right style class. */ -- 2.30.2